package overall.message.login
{
	import flash.utils.ByteArray;
	
	import xnet.Message.ISokcetMessage;
	import xnet.Message.MessageBase;
	
	public class LoginResult extends MessageBase
	{
		public function LoginResult()
		{
			super();
		}
		public var success:Boolean;
		
		public var token:String;
		
		
		override public function write():void
		{


		}
		override public function decodeSocketData(byteArray:ByteArray):ISokcetMessage
		{
			type = byteArray.readByte();
			success=byteArray.readBoolean();
			token=byteArray.readUTF();
			return this;
		}	
	}
}